$(function (){
    let cookieData = JSON.parse([[${resData}]]);
    initNav(cookieData);
});
function initNav(cookieData){
    if (cookieData.resObj.avatar != null){
        $("#userAvatar").attr("src", cookieData.resObj.avatar);
    }
}